<? include '../server_config.php'; ?>
<? 

if($_SESSION['admin']!=true)
{
	?>
	<script>location.href='login.php'</script>
	<?
	return;
}

?>
<br>
Display<br>
<br>
<hr>
<br>


<?
	$sql = "SELECT * FROM ud_display ORDER BY reg_timestamp DESC;";
	
	
	$result = mysql_query($sql,$connect);

	while($row = mysql_fetch_row($result))
	
	{

?>
	<img src='./file/<? echo $row[1]; ?>' width='926px' height='299px'><br><br>

<?
	}
?>

<hr>
파일추가(926x299)<br>
<br>
<form name="fileForm" method="post" enctype="multipart/form-data" action="display_proc.php">
  <input type="file" name="file1" /><br />
  <input type="submit" value="저장"></input>
</form> 
